//
//  ZHCycleCollectionCell.m
//  XZYUser
//
//  Created by chun.chen on 2020/4/13.
//  Copyright © 2020 Zhihan. All rights reserved.
//

#import "ZHCycleCollectionCell.h"

@implementation ZHCycleCollectionCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setupImageView];
    }
    
    return self;
}
- (void)setupImageView
{
    UIImageView* imageView = [[UIImageView alloc] init];
    imageView.clipsToBounds = YES;
    imageView.contentMode = UIViewContentModeScaleAspectFill;
    _imageView = imageView;
    [self addSubview:imageView];
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _imageView.frame = self.bounds;
}
@end
